<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class MenuController extends Controller
{
    //
    public function index()
    {
        dump('MenuController@index');
    }
    public function create()
    {
        dump('MenuController@create');
    }
    public function delete($id)
    {
        dump('MenuController@delete');
    }
    public function update(Request $request)
    {
        dump( $request->all());
        dump('MenuController@update');
    }
    public function info(Request $request)
    {
         // 获取id参数
         $id = $request->input('id');
         // 这里可以进行其他逻辑处理，比如根据id查询数据等
         return response()->json(['message' => '获取参数成功', 'id' => $id]);
    }
    public function getlist()
    {
        dump('MenuController@getlist');
    }
}
?>